/**
 * Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
 * All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are NOT permitted except as agreed by
 * iAuto (Shanghai) Co., Ltd.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */

// 值类型
export const DataType = {
  BOOL: 'bool',
  STRING: 'string',
  INT: 'int',
  FLOAT: 'float',
  DOUBLE: 'double',
};

// 积木类型
export const ElementDype = {
  RADIO: 'radio',
  RADIOLISTVEL: 'radiolistvel',
  NAVIGATION: 'navigation',
  DATE_CUSTOM: 'date_custom',
  DATE: 'date',
  DATE_TIMER: 'date_timer',
  SEEKBAR: 'seekbar',
  RGB: 'RGB',
  TEXT: 'text',
  MEDIA: 'media',
  MEDIA_PLAY: 'media_play',
};

// 那些积木类型是用弹窗形式
export const ModalList = [
  ElementDype.DATE,
  ElementDype.DATE_CUSTOM,
  ElementDype.SEEKBAR,
  ElementDype.RGB,
  ElementDype.MEDIA,
];

// 下拉积木集合
export const SelectList = [ElementDype.RADIO, ElementDype.RADIOLISTVEL, ElementDype.NAVIGATION];

// 过滤对应的能力不显示
export const filterList = [
  // 发起导航 xxx
  // 0x80016, // 导航能力 ID

  // 设置喜马拉雅指定播放
  0x80021, // 喜马拉雅播放能力 ID

  // 播放网易云指定歌曲
  0x8001c, // 网易云播放能力 ID
];
